/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataLayer;

import Objects.Game;
import java.util.ArrayList;

/**
 *
 * @author zorr
 */
public class DLInterfaceHandler implements DataLayerInterface {

    @Override
    public ArrayList<Game> getGameList(String username, String pwd) {
        return DatabaseConnection.getGameList(username, pwd);
    }

    @Override
    public boolean buyGame(String username, int gameId) {
        return DatabaseConnection.buyGame(username, gameId);
    }

    @Override
    public ArrayList<Game> getMyGames(String username) {
        return DatabaseConnection.getMyGames(username);
    }

    @Override
    public String getLicense(String username, int gameId) {
        return DatabaseConnection.getLicense(username, gameId);
    }

    @Override
    public String getGame(String username, int gameId) {
        return DatabaseConnection.getGame(username, gameId);
    }
    
}
